import http from "@/untils/http";
// 获取维修管理列表接口
const repairslist = data=>http.get("/api/repairs/list",data)
// 删除维修接口\
const Del = data=>http.get("/api/repairs/delete",data)
// 楼栋列表
const builList = (data) => http.get("/api/building/list", data);
// 获取维修类型列表接口
const repairstype = data =>http.get('/api/repairstype/list',data)
// 获取居民列表接口
const userlist = data=>http.get("/api/userinfo/list",data)
// 获取维修状态列表接口
const repairstate = data=>http.get("/api/repairstate/list",data)
// 添加维修接口
const update = data=>http.post("/api/repairs/add",data)
export{
    repairslist,
    Del,
    builList,
    repairstype,
    userlist,
    repairstate,
    update
}